package uform.ui.assembler;
import uform.ui.comp.Component;
import uform.ui.comp.DateControl;
import uform.model.value.DateType;

class DateTypeAssembler extends BaseAssembler<DateType>
{
	override public function assemble(type : DateType) : Component
	{
		var options = _options(type);
		if (null != options)
			return options;
		var control = new DateControl("", null, type.granularity);
		_bindBidirectional(control);
//		type.min
//		type.max
		return control;
	}
}